<div class="container">
  <table class="table">
    <thead>
    <tr>
      <th>#</th>
      <th>icon</th>
      <th>name</th>
      <th>index</th>
      <th>game_type</th>
      <th>game_level</th>
      <th>state</th>
    </tr>
    </thead>
    <tbody>

    <% @gameFiles.each do |g| %>
        <tr>
          <th><%= g.id %></th>
          <th><img class="img-rounded img-responsive" src="<%= "games/#{g.id}/#{g.icon_path}" %>"></th>
          <th><%= g.name %></th>
          <th><%= g.index_path %></th>
          <th><%= g.game_type %></th>
          <th><%= g.game_level %></th>
          <th><%= g.state %></th>
          <td><%= link_to 'Edit', edit_upload_path(g) %></td>
        </tr>
    <% end %>
    </tbody>
  </table>
  <%= link_to 'New', new_upload_path %>
</div>